package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Cotenancymessage;
import com.qdu.mapper.CotenancymessageMapper;
import com.qdu.service.CotenancymessageService;
@Service
public class CotenancymessageSeriveImpl implements CotenancymessageService{
    @Autowired
    private CotenancymessageMapper CotenancymessageMapper;
	@Override
	public void insertCotenancymessage(Cotenancymessage cotenancymessage) {
		CotenancymessageMapper.insert(cotenancymessage);
		
	}

	@Override
	public void deleteCotenancymessage(String uid, String hid, String uid2) {
		// TODO Auto-generated method stub
		CotenancymessageMapper.delete(uid, hid, uid2);
	}

	@Override
	public List<CotenancymessageMapper> getAllCotenancymessageByUid(String uid, String hid) {
		// TODO Auto-generated method stub
		return CotenancymessageMapper.getAllCotenancymessageByUid(uid, hid);
	}

}
